package cn.mcsys.myadmin.modules.share.service.impl;

import cn.mcsys.myadmin.modules.air.dao.AirCarDao;
import cn.mcsys.myadmin.modules.share.dao.AirOutsideCarDao;
import cn.mcsys.myadmin.modules.share.entity.AirOutsideCar;
import cn.mcsys.myadmin.modules.share.service.AirVehicleAirCarGPSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AirVehicleAirCarGPSServiceImpl implements AirVehicleAirCarGPSService {

    @Autowired
    private AirCarDao airCarDao;

    @Autowired
    private AirOutsideCarDao airOutsideCarDao;

    @Override
    public AirOutsideCar selectByOutsideNumber(String carNumber) {
        return airOutsideCarDao.selectByCarNumber(carNumber);
    }

    @Override
    public void updateOutsideLonLat(AirOutsideCar airOutsideCar) {
        airOutsideCarDao.updateLonLat(airOutsideCar);
    }
}
